package com.binary.aop;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.codec.digest.DigestUtils;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

public class MySecurityInterper extends HandlerInterceptorAdapter  {
	
	private static String name = DigestUtils.md5Hex("wangchangbo");
	@Override
	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
			throws Exception {
		if("".equals(name)){
			return false;
		}
			return true;
		}

}
